package com.base.service.impl;

import com.base.mapper.voipmapper.CreditCardBankMapper;
import com.base.po.creditcard.CreditCardBank;
import com.base.po.creditcard.CreditCardBankExample;
import com.base.service.CreditCardBankService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("creditCardBankService")
public class CreditCardBankServiceImpl implements CreditCardBankService {

	@Autowired
	private CreditCardBankMapper creditCardBankMapper;

	@Override
	public int countByExample(CreditCardBankExample example) {
		return creditCardBankMapper.countByExample(example);
	}

	@Override
	public int deleteByExample(CreditCardBankExample example) {
		return creditCardBankMapper.deleteByExample(example);
	}

	@Override
	public int deleteByPrimaryKey(Integer id) {
		return creditCardBankMapper.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(CreditCardBank record) {
		return creditCardBankMapper.insert(record);
	}

	@Override
	public int insertSelective(CreditCardBank record) {
		return creditCardBankMapper.insertSelective(record);
	}

	@Override
	public List<CreditCardBank> selectByExample(CreditCardBankExample example) {
		return creditCardBankMapper.selectByExample(example);
	}

	@Override
	public List<CreditCardBank> selectAll() {
		return creditCardBankMapper.selectAll();
	}

	@Override
	public CreditCardBank selectByPrimaryKey(Integer id) {
		return creditCardBankMapper.selectByPrimaryKey(id);
	}

	@Override
	public CreditCardBank selectByBankId(String bankid) {
		return creditCardBankMapper.selectByBankId(bankid);
	}

	@Override
	public int updateByExampleSelective(CreditCardBank record, CreditCardBankExample example) {
		return creditCardBankMapper.updateByExampleSelective(record, example);
	}

	@Override
	public int updateByExample(CreditCardBank record, CreditCardBankExample example) {
		return creditCardBankMapper.updateByExample(record, example);
	}

	@Override
	public int updateByPrimaryKeySelective(CreditCardBank record) {
		return creditCardBankMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(CreditCardBank record) {
		return creditCardBankMapper.updateByPrimaryKey(record);
	}

	@Override
	public int truncateTable() {
		return creditCardBankMapper.truncateTable();
	}
}
